// 合并
interface title{
    age:number,

}

interface title{
    sex:string
}

let obj:title={
    age:18,
    sex:"男"
}

// 别名
interface ABC{
    xm:string
}
type he=title|ABC


// 联合
interface bcd{
    name:string
}


interface efg{
    age:number
}

type hij=bcd|efg

let yyy:hij={
    name:"mdw",
    age:18
}




// 交叉
interface bcd{
    name:string
}


interface efg{
    age:number
}

type hij1=bcd&efg

let yyy1:hij1={
    name:"mdw",
    age:18
}



// 任意属性
interface qgm{
    name:string,
    age:number,
    [a:string]:number|string   
}

let gg:qgm={
    name:"大黄",
    age:6,
    page:1
}